/*
This file is part of vlc-remote.

vlc-remote is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

vlc-remote is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with vlc-remote.  If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 1.1
import com.meego 1.0
import "common"

Page {
    id: aboutPage
    tools: menuTools

    Component.onCompleted: {
        screen.allowedOrientations = Screen.Portrait;
        //lockInPortrait = true;
        orientationLock = Screen.Portrait
    }

    PageHeader {
        id: pageHeader
        anchors.top: parent.top
        title: qsTr("About VLC Remote")
        onClicked: { myMenu.close(); pageStack.pop(); }
    }

    ScrollDecorator {
        flickableItem: aboutFlickable
    }
    Flickable {
        id: aboutFlickable
        anchors.fill: parent
        anchors.topMargin: 58
        contentWidth: aboutPage.width
        clip:  true
        flickableDirection: Flickable.VerticalFlick

        Column {
            id: layout
            spacing:  16

            Text {
                id: intro
                //anchors.top: anchors.bottom
                text: qsTr("<b>Vlc Remote for Harmattan Meego.</b>")
                color:  "white"
                font.pixelSize: 30
            }
            Text {
                id: copyright
                //anchors.top: intro.bottom
                text: qsTr("Copyright 2010 - 2011<br />\
                           Sacha Schutz - istdasklar@gmail.com<br />\
                           Dru Moore - dru@dru-id.co.uk")
                color:  "white"
                font.pixelSize: 24
                anchors.topMargin: 16
            }
            Text {
                id: linksInfo
                //anchors.top: copyright.bottom
                color: "white"
                maximumLineCount: 10
                wrapMode: "WrapAtWordBoundaryOrAnywhere"
                width: layout.width
                anchors.topMargin: 16
                text: qsTr("More info: <a href=\"https://projects.developer.nokia.com/vlc_remote\">https://projects.developer.nokia.com/vlc_remote</a>")
                onLinkActivated: Qt.openUrlExternally(link)
                font.pixelSize: 20
            }
            Text {
                id: linksBugs
                //anchors.top: linksInfo.bottom
                color: "white"
                maximumLineCount: 10
                wrapMode: "WrapAtWordBoundaryOrAnywhere"
                width: layout.width
                anchors.topMargin: 16
                text: qsTr("Bug reports: <a href=\"https://projects.developer.nokia.com/vlc_remote/query\">https://projects.developer.nokia.com/vlc_remote/query</a>")
                onLinkActivated: Qt.openUrlExternally(link)
                font.pixelSize: 20
            }
            Text {
                id: license
                //anchors.top: linksBugs.bottom
                color: "white"
                maximumLineCount: 20
                wrapMode: "WrapAtWordBoundaryOrAnywhere"
                width: layout.width
                font.pixelSize: 20
                anchors.topMargin: 16
                text:  qsTr("<b>Distributed under the GPLv3</b><br />\
                            vlc-remote is free software: you can redistribute it and/or modify\
                            it under the terms of the GNU General Public License as published by\
                            the Free Software Foundation, either version 3 of the License, or\
                            (at your option) any later version.\
                            <br />\
                            vlc-remote is distributed in the hope that it will be useful,\
                            but WITHOUT ANY WARRANTY; without even the implied warranty of\
                            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\
                            GNU General Public License for more details.")
            }
        }

    }
}
